import request from '@/plugins/request';
export default {
    /*.then(res => {
        // 返回数据
    })
        .catch(err => {
            // 异常情况
        })*/

// •/workReport/findByPageReport
// 按条件查询

    findByPage(data) {
        return request({
            url: '/api/workReport/findByPageReport',
            method: 'post',
            data
        });
    },
    //•/workReport/saveReport
    // 新增
    saveReport(data) {
        return request({
            url: '/api/workReport/saveReport',
            method: 'post',
            data
        })
    },

    ///workReport/updateReport
    // 修改

    updateReport(data) {
        return request({
            url: '/api/workReport/updateReport',
            method: 'post',
            data
        })
    },
    ///workReport/deleteReportById
    // 删除

    deleteReportById(data) {
        return request({
            url: '/api/workReport/deleteReportById',
            method: 'post',
            data
        })
    },
    //•	 通过ID查询接口
    ////messages/updateMessage
    updateMessage(data) {
        return request({
            url: '/api/messages/updateMessage',
            method: 'post',
            data
        })
    },
}
